//
//  ZZOrderHeaderView.m
//  新项目
//
//  Created by liGordon on 16/12/20.
//  Copyright © 2016年 刘耀宗. All rights reserved.
//

#import "ZZOrderHeaderView.h"
#import "ZZUserModel.h"
@interface ZZOrderHeaderView ()


@end

@implementation ZZOrderHeaderView

- (void)awakeFromNib {
    [super awakeFromNib];

    if (![ZZUserModel shareViewModel].monthAllMoney) {
           self.MonthIncomeLabel.text = [NSString stringWithFormat:@"¥ 0 "];
    }else{
    self.MonthIncomeLabel.text = [NSString stringWithFormat:@"¥%@",[ZZUserModel shareViewModel].monthAllMoney];
    }
    
    if (![ZZUserModel shareViewModel].todayMoney) {
            self.todayIncomeLabel.text =  [NSString stringWithFormat:@"¥ 0 " ];
    }else{
    self.todayIncomeLabel.text =  [NSString stringWithFormat:@"¥%@",[ZZUserModel shareViewModel].todayMoney];
    }
    DLog(@"%@%@",[ZZUserModel shareViewModel].monthAllMoney,[ZZUserModel shareViewModel].todayMoney);
}

+(instancetype)zzOrderHeaderViewFromXib
{
    return [[NSBundle mainBundle]loadNibNamed:NSStringFromClass([ZZOrderHeaderView class]) owner:nil options:nil].lastObject;
}

@end
